package com.xhwl.logistics.service.cent;


import com.xhwl.common.dto.cent.iotdata.mettler.WeighDTO;
import com.xhwl.common.dto.cent.iotdata.vehicleschedule.VehicleScheduleRequestsDTO;
import com.xhwl.common.dto.cent.iotdata.vehicleschedule.VehicleScheduleResponseDTO;
import com.xhwl.common.pojo.ResultJson;
import feign.RequestLine;

/**
 * cent-iot-data的feign接口
 */
//@FeignClient(value = "cent-iot-data")
public interface IIotDataService {

    /**
     * 车辆调度：查询车辆是否允许进入
     */
    @RequestLine(value = "POST /logistics-schedule/check-truck-enter")
    ResultJson<VehicleScheduleResponseDTO> onCheckingTruckEnter(VehicleScheduleRequestsDTO dto);

    /**
     * 车辆调度：通知地磅开始称重
     */
    @RequestLine(value = "POST /iot-data-service/weigh")
    ResultJson weigh(WeighDTO dto);

    /**
     * 车辆调度：点位事件同步
     */
    @RequestLine(value = "POST /logistics-schedule/sync-truck-events")
    ResultJson<VehicleScheduleResponseDTO> onSyncingTruckEvents(VehicleScheduleRequestsDTO dto);
}
